﻿using System;

using eXamineBusiness.SystemDescription.Events;

namespace eXamineBusiness.SystemDescription
{
    public class ReceivedThrownEvent : ReceivedEvent {
        public ReceivedThrownEvent (ThrownEvent thrownEvent) : base(thrownEvent.Name)
        {
            this.ThrownEvent = thrownEvent;
            this.Parent = thrownEvent.Parent;
        }


        public override String Name
        {
            get { return this.ThrownEvent.Name; }
            set
            {
                this.ThrownEvent.Name = value;
            }
        }

        public ThrownEvent ThrownEvent { get; set; }
        public event EventHandler ThrownEventRemoved;

    }
}
